﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="search.aspx.vb" Inherits="_Default" title="MoBiLe-Search" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">


        .style1
        {
            font-size: large;
            color: #0066FF;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <center>
    <p>
        <span class="style1">
        <asp:Label ID="Label1" runat="server" Text="Welcome "></asp:Label>
        <asp:Label ID="Label2" runat="server" Text="Username"></asp:Label>
        &nbsp;</span></p>
        <p>
            <span class="style1">
            Search Images By user id:
        </span></p>
        <p>
            Select User ID :
            <asp:DropDownList ID="DropDownList1" runat="server" Height="20px" 
                style="margin-top: 0px" Width="118px" DataSourceID="SqlDataSource1" 
                DataTextField="username" DataValueField="username" TabIndex="1">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                SelectCommand="SELECT [username] FROM [users]"></asp:SqlDataSource>
&nbsp;
            <asp:Button ID="Button1" runat="server" Text="Go" Width="102px" 
                style="height: 26px" TabIndex="2" />
        </p>
        <p>
                        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" CellPadding="4" 
                ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" 
                            EmptyDataText="Sorry No Data Available" PageSize="5">
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                <asp:BoundField DataField="imageid" HeaderText="Id" />
                               <asp:ImageField HeaderText="Image" DataImageUrlField="imageurl" ControlStyle-Height=150 ControlStyle-Width=150>
                               <ControlStyle Height="150px" Width="150px"></ControlStyle>
                               </asp:ImageField>
                <asp:BoundField DataField="title" HeaderText="Image Title" />
                <asp:BoundField DataField="uploadby" HeaderText="Upload By" />
                           
                    <asp:ButtonField ButtonType="Button" CommandName="Select" Text="Select" />
                           
                </Columns>
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </p>
        <p class="style1">
            View all Comments By user id: </p>
        <p>
            Select User ID :
            <asp:DropDownList ID="DropDownList2" runat="server" Height="20px" 
                style="margin-top: 0px" Width="118px" DataSourceID="SqlDataSource1" 
                DataTextField="username" DataValueField="username" TabIndex="3">
            </asp:DropDownList>
&nbsp;
            <asp:Button ID="Button2" runat="server" Text="Go" Width="102px" TabIndex="4" />
        </p>
        <p>
            <asp:GridView ID="GridView2" runat="server" AllowPaging="True" CellPadding="4" 
                ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" 
                EmptyDataText="Sorry No Data Available" PageSize="5">
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                <asp:BoundField DataField="imageid" HeaderText="Id" />
                               <asp:ImageField HeaderText="Image" DataImageUrlField="imageurl" ControlStyle-Height=150 ControlStyle-Width=150>
                               <ControlStyle Height="150px" Width="150px"></ControlStyle>
                               </asp:ImageField>
                <asp:BoundField DataField="comment" HeaderText="Comment" />
                <asp:BoundField DataField="commentby" HeaderText="Comment By" />

                            
                    <asp:ButtonField ButtonType="Button" CommandName="Select" Text="Select" />

                            
                </Columns>
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </p>
        <p>
        </p>
    </center>
    
         
        
        
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>

